package com.cy.pj.goods.service;

import com.cy.pj.goods.pojo.Goods;
import jdk.nashorn.internal.ir.IfNode;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface GoodsService {
    List<Goods> findGoods();

    @Delete("delete from tb_goods where id=#{id}")
    int deleteById(Integer id);

    @Delete("delete from tb_goods where id in (${id})")
    int deleteByHenDuoId(String id);
}
